<div class="col-sm-12 mt20" >
<div class="panel panel-default">
<div class="panel-body">
<div class="col-sm-12 mt10">
    <div class="col-sm-2">订单信息：</div>

    <!-- <button  ng-repeat="item in arr" style="padding-right:10px;margin-right:10px">
            {{item}}&nbsp;&nbsp; <i class="glyphicon glyphicon-remove" ng-click="remove($index)"></i>      
    </button> -->
</div>
<div class="col-sm-12 mt10">
    <div class="col-sm-1">
        <label class="control-label mt10">车辆类型</label>
    </div>
    <div class="col-sm-6 col-xs-12"> 
        <ui-select multiple tagging tagging-label="false" ng-model="info.themearr " style="height:50px" theme="bootstrap" ng-disabled="ctrl.disabled" title="Choose a type">
            <ui-select-match placeholder="选择车辆类型" style="margin-top:32px">{{$item.name}}</ui-select-match>
            <ui-select-choices repeat="typelist.value as typelist in typearr | filter:$select.search">
            {{typelist.name}}
            </ui-select-choices>
        </ui-select>
    </div>
    <!-- <span style="padding-right:10px;cursor:pointer" ng-repeat="item in typearr" ng-click="addtypearr($index)">{{item.name}}</span> -->
</div>
<div class="col-sm-12 mt10">
    <div class="col-sm-1 mt10">
        <label class="control-label">载重量</label>
    </div>
    <div class="col-sm-6 col-xs-12"> 
        <ui-select multiple tagging tagging-label="false" ng-model="info.themearr " style="height:50px" theme="bootstrap" ng-disabled="ctrl.disabled" title="Choose a theme">
            <ui-select-match placeholder="选择载重量" style="margin-top:32px">{{$item.name}}</ui-select-match>
            <ui-select-choices repeat="weightlist.value as weightlist in weightarr | filter:$select.search">
            {{weightlist.name}}
            </ui-select-choices>
        </ui-select>
    </div>
    <div class="pull-right col-sm-1 mt10">
        <button type="button" class="btn btn-info btn-block" ng-click="tostatistics($index)" >搜索</button>
    </div>
    
</div>

</div>
</div>
<!-- searchArea -->

<div class="panel panel-default">
    <div class="panel-body">
        <table class="table table-condensed table-hover table-bordered">
            <thead>
                <tr>
                    <th class=" text-center" style="width: 15%;text-align:center;vertical-align:middle;">车企名称</th>
                    <th class=" text-center" style="width: 16%;text-align:center;vertical-align:middle;">可用车辆</th>
                    <th class=" text-center" style="width: 14%;text-align:center;vertical-align:middle;">供应商产品名称</th>
                    <th class=" text-center" style="width: 8%;text-align:center;vertical-align:middle;">产品类型</th>
                    <th class=" text-center" style="width: 9%;text-align:center;vertical-align:middle;">修改时间</th>
                    <th class=" text-center" style="width: 13%;text-align:center;vertical-align:middle;">出发/目的城市</th>
                    <th class=" text-center" style="width: 8%;text-align:center;vertical-align:middle;">产品状态</th>                   
                    <th class=" text-center" style="width: 10%;text-align:center;vertical-align:middle;">操作</th>
                </tr>
            </thead>
            <tbody ng-repeat="info in a">
                <tr >
                    <td ng-click="show($index)"class="text-center" style="width: 15%;text-align:center;vertical-align:middle;">{{info.id}}</td>
                    <td ng-click="show($index)"class="text-center" style="width: 16%;text-align:center;vertical-align:middle;"></td>
                    <td ng-click="show($index)"class="text-center" style="width: 14%;text-align:center;vertical-align:middle;">{{info.supplier_product_name}}</td>
                    <td ng-click="show($index)"class="text-center" style="width: 7%;text-align:center;vertical-align:middle;">{{info.product_type_name}}</td>
                    <td ng-click="show($index)"class="text-center" style="width: 9%;text-align:center;vertical-align:middle;">{{info.update_time}}</td>
                    <td ng-click="show($index)"class="text-center" style="width: 15%;text-align:center;vertical-align:middle;"><div class="ellipsis" style="max-width:100%;display:block;overflow: hidden;white-space: nowrap;-o-text-overflow: ellipsis;text-overflow: ellipsis;" title="{{info.end_city}}">{{info.end_city}}</div></td>
                    <td ng-click="show($index)"class="text-center" style="width: 7%;text-align:center;vertical-align:middle;">{{info.product_state_name=="待上架"?"正在审核":info.product_state_name}}</td>                         
                    <td class="text-center"style="width: 10%;text-align:center;vertical-align:middle;">
                        <div class="pull-left" style="width: 50%">
                                <button type="button" class="btn btn-info btn-xs" ng-click="toinfo($index)">详情</button>
                            </div>
                             <div class="pull-left" style="width: 50%">
                                <button type="button" class="btn btn-warning btn-xs" ng-click="tostatistics($index)" >统计</button>
                            </div>
                    </td>
                </tr>
                <tr ng-repeat="info2 in info.codeInfoList" ng-show="b==1&&c==$parent.$index" style="background-color: #f0f0f0">
                    <td  class="text-center"ng-click="show()"style="width: 15%;text-align:center;vertical-align:middle;">{{info2.id}}</td>
                    <td  class="text-center"ng-click="show()"style="width: 16%;text-align:center;vertical-align:middle;"><div class="ellipsis" style="max-width:100%;display:block;overflow: hidden;white-space: nowrap;-o-text-overflow: ellipsis;text-overflow: ellipsis;" title="{{info.product_name}}">{{info2.product_name}}</div><div class="ellipsis" style="max-width:100%;" title="{{info.product_sub_name}}">{{info2.product_sub_name}}</div></td>
                    <td  class="text-center"ng-click="show()"style="width: 14%;text-align:center;vertical-align:middle;">{{info2.supplier_product_name}}</td>
                    <td  class="text-center"ng-click="show()"style="width: 7%;text-align:center;vertical-align:middle;">{{info2.product_type_name}}</td>
                    <td  class="text-center"ng-click="show()"style="width: 9%;text-align:center;vertical-align:middle;">{{info2.update_time}}</td>
                    <td  class="text-center"ng-click="show()"style="width: 15%;text-align:center;vertical-align:middle;"><div class="ellipsis" style="max-width:100%;display:block;overflow: hidden;white-space: nowrap;-o-text-overflow: ellipsis;text-overflow: ellipsis;" title="{{info.start_city_arr}}">{{info2.start_city_arr}}</div><div class="ellipsis" style="max-width:100%;display:block;overflow: hidden;white-space: nowrap;-o-text-overflow: ellipsis;text-overflow: ellipsis;" title="{{info.end_city}}">{{info2.end_city}}</div></td>                
                    <td  class="text-center"ng-click="show()"style="width: 7%;text-align:center;vertical-align:middle;">{{info2.product_state_name=="待上架"?"正在审核":info2.product_state_name}}</td>                  
                    <td  style="text-align:center;width: 10%;vertical-align:middle;" >
                         <div class="pull-left " style="width: 50%;vertical-align:middle">
                            <button type="button" class="btn btn-info btn-xs" ng-click="toinfo($parent.$index,$index)">详情</button>
                        </div>
                             <!--<div class="pull-left" style="width: 50%">
                                <button type="button" class="btn btn-warning btn-xs" ng-click="tostatistics($index)" >统计</button>
                            </div>-->
                    </td>
                   
                           
                </tr>
            </tbody>
        </table>
        <div class="text-right">
             <pagination 
                total-items="totalItems" 
                ng-model="currentPage" 
                ng-change="pageChanged()"
                previous-text="上一页"
                next-text="下一页"
                first-text="首页"
                last-text="尾页"
                max-size="5"
                boundary-links="true"
                rotate="false"
                items-per-page="itemsPerPage"
                class="m-t-none m-b">
            </pagination>
        </div>
    </div>
</div>

</div>